- name: kubernetes.node.rofs
  rules:
  - alert: NodeFilesystemIsRO
    expr: |-
      max by (node, mountpoint, device, fstype) (
        node_filesystem_readonly{mountpoint=~"(/|/mnt/kubernetes-data|/var/lib/containerd/)"}
      ) != 0
    for: 5m
    labels:
      severity_level: "4"
      tier: cluster
    annotations:
      plk_protocol_version: "1"
      plk_create_group_if_not_exists__node_filesustem_is_r_o_cluster: "NodeFilesystemIsROCluster,tier=cluster,prometheus=deckhouse,kubernetes=~kubernetes"
      plk_grouped_by__node_filesustem_is_r_o_cluster: "NodeFilesystemIsROCluster,tier=cluster,prometheus=deckhouse,kubernetes=~kubernetes"
      description: |-
        The file system on the node has switched to read-only mode.

        See the node logs to find out the cause and fix it.
      summary: The file system of the node is in read-only mode.
